﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.ServiceModel;
using System.Text;
using PiscoSourDominio;
using System.ServiceModel.Web;

namespace PiscoSourRESTServices
{
    // NOTE: You can use the "Rename" command on the "Refactor" menu to change the interface name "ILocales" in both code and config file together.
    [ServiceContract]
    public interface ILocales
    {
        [OperationContract]
        [WebInvoke(Method = "POST", UriTemplate = "ULocal/{codigo}", ResponseFormat = WebMessageFormat.Json)]
        Local ObtenerUsuarioLocal(string codigo);

        [OperationContract]
        [WebInvoke(Method = "POST", UriTemplate = "OLocal/{codigo}", ResponseFormat = WebMessageFormat.Json)]
        Local ObtenerLocal(string codigo);

        [OperationContract]
        [WebInvoke(Method = "GET", UriTemplate = "ListaLocales", ResponseFormat = WebMessageFormat.Json)]
        List<Local> ListaLocales();
    }
}
